#include "widget.h"
#include "ui_widget.h"
#include<QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->comboBox->addItem("麦辣鸡腿堡");
    ui->comboBox->addItem("巨无霸");
    ui->comboBox->addItem("培根牛肉堡");

    ui->comboBox_2->addItem("大份薯条");
    ui->comboBox_2->addItem("麦辣鸡翅");
    ui->comboBox_2->addItem("鸡块");

    ui->comboBox_4->addItem("可乐");
    ui->comboBox_4->addItem("芬达");
    ui->comboBox_4->addItem("雪碧");
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug() << ui->comboBox->currentText() << ", " << ui->comboBox_2->currentText() << ", " << ui->comboBox_4->currentText();
}
